home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d21
/
dvglue10.arc
/
TVQLSIZE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-08-13
|
1KB
|
29 lines
/*=======================================================*/
/* TVQLSIZE.C */
/* */
/* (c) Copyright 1988 Ralf Brown All Rights Reserved */
/* May be freely copied for noncommercial use, so long */
/* as this copyright notice remains intact, and any */
/* changes are marked in the comment blocks preceding */
/* functions. */
/*=======================================================*/
#include "tvapi.h"
#include "tvstream.h"
/*=======================================================*/
/* TVqry_lsize--get size of screen buffer */
/* Ralf Brown 4/3/88 */
/*=======================================================*/
void pascal TVqry_lsize(OBJECT win,int *rows, int *cols)
{
static BYTE query_stream[] = { S_QUERY(3), 0xC5, 0, 0 } ;
TVwin_stream(win,query_stream) ;
*rows = query_stream[5] ;
*cols = query_stream[6] ;
}
/* End of TVQLSIZE.C */